#ifndef DEFAULTPAGE_H
#define DEFAULTPAGE_H

#include <QWidget>
#include <querypackage.h>
#include <QDate>
namespace Ui {
class DefaultPage;
}

class DefaultPage : public QWidget
{
    Q_OBJECT

public:
    explicit DefaultPage(QWidget *parent = nullptr);
    ~DefaultPage();
    QueryPackage* RequestQueryOneWay();
    QueryPackage* RequestQueryRound();
    QueryPackage* RequestQueryRefund();
    QueryPackage* RequestQueryTranfer();
    QueryPackage* RequestQueryOnTime();
    QueryPackage* RequestQueryOnSale();
    QueryPackage* RequestQueryChkp();
public slots:
    void OnRequestForQuery();
    void InitStations(QJsonObject json);
    void InitCities(QJsonObject json);
signals:
    void RequestForQuery(QueryPackage* item);

private slots:
    //void on_btn_onew_query_clicked();
    //void ChangeDateEdit(QDate t);

private:
    Ui::DefaultPage *ui;
};

#endif // DEFAULTPAGE_H
